|
dcmotor6 2.2.0
|
This file contains API for DC MOTOR 6 Click driver. More...
#include "drv_digital_out.h"#include "drv_digital_in.h"Go to the source code of this file.
Data Structures | |
| struct | dcmotor6_t |
| Click ctx object definition. More... | |
| struct | dcmotor6_cfg_t |
| Click configuration structure definition. More... | |
Macros | |
| #define | DCMOTOR6_MAP_MIKROBUS(cfg, mikrobus) |
| #define | DCMOTOR6_RETVAL uint8_t |
| #define | DCMOTOR6_OK 0x00 |
| #define | DCMOTOR6_INIT_ERROR 0xFF |
| #define | DCMOTOR6_MOTOR_FORWARD 1 |
| #define | DCMOTOR6_MOTOR_REVERSE 2 |
| #define | DCMOTOR6_MOTOR_BRAKE 0 |
| #define | DCMOTOR6_MOTOR_STOP 0 |
Functions | |
| void | dcmotor6_cfg_setup (dcmotor6_cfg_t *cfg) |
| Config Object Initialization function. | |
| DCMOTOR6_RETVAL | dcmotor6_init (dcmotor6_t *ctx, dcmotor6_cfg_t *cfg) |
| Initialization function. | |
| void | dcmotor6_set_in1_pin (dcmotor6_t *ctx, uint8_t state) |
| Set IN1 pin. | |
| void | dcmotor6_set_in2_pin (dcmotor6_t *ctx, uint8_t state) |
| Set IN1 pin. | |
| void | dcmotor6_set_direction (dcmotor6_t *ctx, uint8_t dir) |
| Set motor Direction. | |
This file contains API for DC MOTOR 6 Click driver.